{% extends "wiki/base.html" %}

{% load i18n %}
{% load wiki %}
{% load wikiurl %}
{% load pagination_tags %}
{% load humanize %}
{% load tagging_tags %}

{% block head_title %}Wiki for {{ group.name }}{% endblock %}

{% block body %}

	<div class="right_panel">
		<h3>Tag Cloud</h3>
		<div class="tag-cloud">
			{% tag_cloud_for_model wiki.Article as tags with steps=6 min_count=1 distribution=log %}
			{% for tag in tags %}
				<span class="tag-{{tag.font_size}}"><a href="/tags/{{tag.name|slugify}}/">{{tag.name}}</a></span> 
			{% endfor %}
		</div>
	</div>

	<div style="width: 60%;">
		
		{% wiki_title group %}
	
		{% include "wiki/searchbox.html" %}

		{% autopaginate articles %}
	
		{% regroup articles by created_at.date as articles_by_creation_date %}
	
		{% if articles %}
			{% for date in articles_by_creation_date %}
				<h2 class="join_date">{{ date.grouper|naturalday:_("MONTH_DAY_FORMAT")|capfirst }}</h2>
	
				{% for article in date.list %}
					<a href="{% wikiurl article group article %}">{{ article.title }}</a><br />
				{% endfor %}
			{% endfor %}
		{% endif %}
	
		{% if allow_write %}
			<p>Start a <a href="{% wikiurl edit group new_article %}">NewArticle</a>.</p>
		{% endif %}
		
	</div>

{% endblock %}
